import {axios} from '@/utils/request'
/**
 * 题库管理
 * */

// 查询所有
export const queryAll = data => {
  return axios({
    url: '/exam/query',
    method: 'post',
    data
  })
}

// 新增
export function queryInsert (model) {
  return axios({
    url: '/exam/insert',
    method: 'post',
    data: model
  })
}
// 阅卷列表
export function examRecordquery (model) {
  return axios({
    url: '/examRecord/checkPaper',
    method: 'post',
    data: model
  })
}
// 获取阅卷简答题
export function examAnswerRecord (model) {
  return axios({
    url: '/examAnswerRecord/query',
    method: 'post',
    data: model
  })
}
// 确定阅卷
export function checkPageForQuestion (model) {
  return axios({
    url: '/examRecord/checkPageForQuestion',
    method: 'post',
    data: model
  })
}
// 下发证书
export function examRecordqrcode (model) {
  return axios({
    url: '/examRecord/sendCertificate',
    method: 'post',
    data: model
  })
}
// 阅卷删除
export function examRecorddelete (model) {
  return axios({
    url: '/examRecord/delete/'+model.id+'/'+model.examinationInfoID,
    method: 'post',
    data: model
  })
}
// 题目导出
export function exportQuestionList (model) {
  return axios({
    url: '/question/exportQuestionList',
    method: 'post',
    responseType: 'blob',
    data: model
  })
}